package com.un.core.exception;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @Author xingjian
 * @Date 2023-01-29
 **/
@EqualsAndHashCode(callSuper = true)
@Data
public class ServiceException  extends RuntimeException{

    private final Integer code;
    public ServiceException(Integer code, String message) {
        super(message);
        this.code = code;
    }

}
